package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * <p>
 * 
 * </p>
 *
 * @author Webgasd
 * @since 2021-04-26
 */
@TableName("sys_acl_module")
public class SysAclModule extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 权限模块id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限模块名称
     */
    @TableField("name")
    private String name;

    /**
     * 上级权限模块id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 权限模块层级
     */
    @TableField("level")
    private String level;

    /**
     * 权限模块在当前层级下的顺序，由小到大
     */
    @TableField("seq")
    private Integer seq;

    /**
     * 状态，1：正常，0：冻结
     */
    @TableField("status")
    private Integer status;

    /**
     * 图标
     */
    @TableField("picture")
    private String picture;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 操作者
     */
    @TableField("operator")
    private String operator;

    /**
     * 最后一次操作时间
     */
    @TableField("operate_time")
    private Date operateTime;

    /**
     * 最后一次更新操作者的ip地址
     */
    @TableField("operate_ip")
    private String operateIp;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
    public String getOperateIp() {
        return operateIp;
    }

    public void setOperateIp(String operateIp) {
        this.operateIp = operateIp;
    }

    @Override
    public String toString() {
        return "SysAclModule{" +
            "id=" + id +
            ", name=" + name +
            ", parentId=" + parentId +
            ", level=" + level +
            ", seq=" + seq +
            ", status=" + status +
            ", picture=" + picture +
            ", remark=" + remark +
            ", operator=" + operator +
            ", operateTime=" + operateTime +
            ", operateIp=" + operateIp +
        "}";
    }
}
